import request from "@/util/request";

// 获取公共产品列表
export const getPublicProduct=(query)=>{
	return request({
		url: '/applet/productInfo/list',
		method: 'get',
		params:query
	})
}

// 轮播图
export const getPicture=()=>{
	return request({
	    url: '/applet/public/infoPublish/list',
	    method: 'get',
	})
}

// 获取产品信息详细信息
export const getProductDetail=(id)=>{
	return request({
	    url: '/applet/productInfo',
	    method: 'get',
	})
}

// 文件上传
export const uploadIm=()=>{
	return request({
	    url: '/common/upload',
	    method: 'post',
	})
}

//新闻

export const infoSubscribe=()=>{
	return request({
	    url: '/applet/public/infoSubscribe/list',
	    method: 'get',
	})
}